# coding=utf-8

from center.api import run_api
from center.web import run_server


def leader_watcher():
    # 成为master后，运行web服务器
    run_server.run_webserver()

    # 运行API服务
    run_api.run_apiservice()
